package com.ayitubie.refuelweb.mapper;

import com.ayitubie.refuelweb.entity.RefuelLog;
import com.ayitubie.refuelweb.entity.RefuelLogForExcel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RefuelLogMapper {
    List getRefuelLogByUserId(@Param("userId") int usrId, @Param("payMoney") float payMoney,@Param("payMoneyLow") float payMoneyLow,@Param("stationIds") List stationIds);
    List getRefuelLogByUserIdWithLimit(@Param("userId") int usrId, @Param("start") int start,@Param("total") int total);
    List getPerMonth(@Param("userId") int usrId);
    Long refuelCreate(RefuelLog refuelLog);

    int getLastRefuel(int userId);

    int countRefuellog(int userId);

    float getAvgOil(int userId);

    int delRefuelById(Long refuel_id);

    Long updateRefuelById(RefuelLog refuelLog);
}
